Shell | Split |
Syntax: @ShellExec filename, params, verb, { flag }
The ShellExec command can be used to reference a data file, which could itself then invoke another Windows application. This depends on what Registered File Type that you have associated with the file extension in Windows.
The filename is the pathname of the file being called.
The params parameter can be used to pass parameters to the invoked application. The syntax and usage depends upon the application being called by the data file. A null string should be passed when this is not required.
The verb is the ACTION that is implemented for the particular Registered File Type of that file extension in Windows. For example, Microsoft Word might have Open and Print Actions.
The flag parameter can be set to 0 to wait or to 1 to continue. Note that some Windows applications may not enable this feature and will always continue by default.
Example
If your system is set to invoke NOTEPAD.EXE when you click on a text file (i.e. filename.TXT), then this command may open the text file myfile.txt and only continue when you exit NOTEPAD.
@ShellExec 'C:\data\myfile.txt','','Open', 0